package com.site.wisdom_construction.service.userAuthorityModule;

import com.site.wisdom_construction.dao.userAuthorityModule.UserDao;
import com.site.wisdom_construction.entity.userAuthorityModule.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/22
 * @Description
 */
@Service
public class UserService implements UserDao {
    @Autowired
    private UserDao userDao;

    @Override
    public int insertUser(Map map) {
        return userDao.insertUser(map);
    }

    @Override
    public int deleteUser(Map map) {
        return userDao.deleteUser(map);
    }

    @Override
    public int updateUser(Map map) {
        return userDao.updateUser(map);
    }

    @Override
    public int updateUserPassword(Map map) {
        return userDao.updateUserPassword(map);
    }

    @Override
    public User findUserByAccount(Map map) {
        return userDao.findUserByAccount(map);
    }

    @Override
    public User findUserByContactsPhone(Map map) {
        return userDao.findUserByContactsPhone(map);
    }

    @Override
    public User findUserById(Map map) {
        return userDao.findUserById(map);
    }
}
